<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>

<!-- Bootstrap core CSS -->
<link href="<%=basePath%>bootstrap3/css/bootstrap.min.css"
	rel="stylesheet">
<link href="data:text/css;charset=utf-8,"
	data-href="<%=basePath%>bootstrap3/css/bootstrap-theme.min.css"
	rel="stylesheet" id="bs-theme-stylesheet">
<link href="<%=basePath%>bootstrap3/css/docs.min.css" rel="stylesheet">

<script src="<%=basePath%>bootstrap3/js/jquery.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/bootstrap.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/docs.min.js"></script>

<script src="<%=basePath%>bootstrap3/js/ie10-viewport-bug-workaround.js"></script>
<style type="text/css">
#head {
	height: 100px;
	width: 100%;
	background: #373737;
	margin-left: auto;
	margin-right: auto;
}
</style>
</head>

<body style="background: #BBBBBB;">
	<div id="head">
		<div
			style="height: 100%; width: 50%; margin-left: auto; margin-right: auto;">
			<font color="#99CCFF" size="7">最新的建议和投诉信
				</h1>
			</font><br /> <font color="#99CCFF" size="5">一切为了公司和国家的公正和公平</font>
		</div>
	</div>
	<div style="height: 30px; width: 100%;"></div>
	<div align="center">
		<c:forEach items="${sessionScope.listMind }" var="mind">
			<c:if test="${mind.mindflag==1 }">
				<div class="list-group" style="width: 50%;">
					<a class="list-group-item active" style="background: #2AABD2">
						<h3 class="list-group-item-heading">
							关于公司的建设性意见 <span class="badge"
								style="color: #003399; background: #99CCFF;"></span>
						</h3>
						<h4><p class="list-group-item-text" align="left">&nbsp;&nbsp;${mind.mindaffair }</p></h4>
					</a>
				</div>
			</c:if>
		</c:forEach>
		<c:forEach items="${sessionScope.listMind }" var="mind">
			<c:if test="${mind.mindflag==2 }">
				<div class="list-group" style="width: 50%;">
					<a class="list-group-item active" style="background: #003300">
						<h3 class="list-group-item-heading">
							投诉:${mind.opcode }<span class="badge"
								style="color: #003399; background: #99CCFF;"><fmt:formatDate
									value="${mind.minddate }" pattern="yyyy年MM月dd日HH时mm分" /></span>
						</h3>
						<h4><p class="list-group-item-text" align="left">&nbsp;&nbsp;${mind.mindaffair }</p></h4>
						<h4><p class="list-group-item-text" align="right">${mind.mindsite }</p></h4>
					</a>
				</div>
			</c:if>
		</c:forEach>
		<div style="height:30px;"></div>
		<div> <a href="<%=basePath%>manager/selectAllMind.action" class="btn btn-primary btn-lg active" role="button" style="height:40px;">查&nbsp;&nbsp;看&nbsp;&nbsp;所&nbsp;&nbsp;有</a></div>
	</div>
</body>

</html>